package practice;

import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class ToolsQATest {
	
	protected WebDriver driver;
	
	@Before
	public void testSetUP(){
		driver=new FirefoxDriver();
		driver.manage().window().maximize();
		driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
	}
	@Test
	public void shouldAbleToNavigateToolsQA() throws InterruptedException{
		
		driver.navigate().to("http://www.demoqa.com/");
		
		/*Actions action=new Actions(driver);
		action.moveToElement(driver.findElement(By.xpath("//*[@id='main-nav']/li[7]/a/span")))
				.click(driver.findElement(By.xpath("//*[@id='main-nav']/li[7]/ul/li[2]/a/span"))).build().perform();
		*/
		Thread.sleep(3000);
		
	}
	
	@After
	public void testTearDown(){
		driver.close();
	}

}
